﻿using Newtonsoft.Json;
using SqlSugar;

namespace WebAssistant.BusinessLogic.Model
{
    /// <summary>
    /// 报表
    /// </summary>
    [SugarTable("reports")]
    public class Reports
    {

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; }

        [SugarColumn(ColumnName = "report_id")]
        public int ReportId { get; set; }

        /// <summary>
        /// 报表名称
        /// </summary>
        [SugarColumn(ColumnName = "report_name", IsPrimaryKey = true)]
        public string ReportName { get; set; }

        /// <summary>
        /// 报表模型
        /// </summary>
        [SugarColumn(ColumnName = "model")]
        public string Model { get; set; }

        /// <summary>
        /// 数据模板
        /// 允许为空
        /// </summary>
        [SugarColumn(ColumnName = "data_template", IsNullable=true, ColumnDataType= "text")]
        public string DataTemplate { get; set; }

        /// <summary>
        /// 报表模板
        /// 允许为空
        /// </summary>
        [SugarColumn(ColumnName = "report_template", IsNullable=true, ColumnDataType= "text")]
        public string ReportTemplate { get; set; }

        /// <summary>
        /// 使用模板
        /// </summary>
        [SugarColumn(ColumnName = "use_assistant")]
        public bool UseAssistant { get; set; }      
        

    }
}
